Hi Tapio,
I assume you tried this with Stop
When Low checked or unchecked?
One remote possibility is
that noise is causing the signal to be both high and low (with a small duty
cycle so it may not be seen on the Digital I/O Screen).
Try running these two test routines to check for that and report
the results (test in the inactive state):
#include "KMotionDef.h"
// Simple check for Glitch on Input Pin
main()
{
while
(!ReadBit(1106)) ; // tight loop while input is low
printf("Input was high!!\n");
}
#include
"KMotionDef.h"
// Simple check for Glitch on Input
Pin
main()
{
while (ReadBit(46)) ; // tight loop while
input is low
printf("Input was low!!\n");
}
Regards
TK